<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../../global/css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./frm.css" />
</head>
<body>
	<div id="main"></div>
</body>

<script id="tpl-msg-setting" type="text/x-dot-template">
    <!-- <div class="gdlg-outter" ontouchmove="event.preventDefault();" > -->
    <div class="gdlg-outter">
        <div class="gdlg-inner gdlg-inner1">
            <div class="gdlg-close-bg"></div>
            <div class="gdlg-close">
                <img tapmode onclick="onGDlgClose(this);" src="../../../global/image/close.png" />
            </div>
            <div style="height:31px;"></div>
            <img class="gdlg-hello" src="../../../global/image/dialog/img-hello.png" />
            <div class="gdlg-title">{{=it.title}}</div>
            <div class="gdlg-sub">{{=it.subtitle}}</div>

            <!-- 注意: data-action必须用单引号，以让其中的值可带双引号 -->
            <div class="gdlg-btn1" data-popupid="{{=it.popupid}}" data-time="{{=it.time}}" data-action='{{=it.clickaction}}' tapmode onclick="onGDlgAction(this);">{{=it.clicktxt}}</div>
        </div>
    </div>
</script>

<script id="tpl-red-pack" type="text/x-dot-template">
    <div class="gdlg-outter">
        <div class="gdlg-inner gdlg-inner2">
            <div class="gdlg-close-bg2"></div>
            <div class="gdlg-close2">
                <img tapmode onclick="onGDlgClose(this);" src="../../../global/image/close.png"/>
            </div>
            <div style="height:20px;"></div>
            <div class="gdlg-title2" >{{=it.title}}</div>
            <div class="gdlg-sub2">{{=it.subtitle}}</div>
            <div class="gdlg-desc1">{{=it.desc1}}</div>
            <div class="gdlg-desc2">{{=it.desc2}}</div>

            <!-- 注意: data-action必须用单引号，以让其中的值可带双引号 -->
            <div class="gdlg-btn2" data-popupid="{{=it.popupid}}" data-time="{{=it.time}}" data-action='{{=it.clickaction}}' tapmode onclick="onGDlgAction(this);">{{=it.clicktxt}}</div>
        </div>
    </div>
</script>

<script type="text/javascript" src="../../../config.js"></script>
<script type="text/javascript" src="../../../global/script/lib/api.js"></script>
<script type="text/javascript" src="../../../global/script/mylib.js"></script>
<script type="text/javascript" src="../../../global/script/lib/doT.min.js"></script>
<script type="text/javascript" src="../../../app.js"></script>
<script type="text/javascript" src="./frm.js"></script>

</html>


<script type="text/javascript" src="../../../global/script/_fakeApi.js"></script>
<script type="text/javascript">

    fooMsgSetting();
    // fooRedPack();

    function fooRedPack() {
        api.pageParam = {
            popupid: 3,
            style: 2,
            title: 'hello',
            subtitle: 'sub',
            instruction: '找一个人,好好[2000]元',
            clicktxt: '点我啊',
            clickaction: 'alert("foo");',
            time: Date.now()
        };
        apiready();
    }

    function fooMsgSetting() {
        api.pageParam = {
            style: 1,
            title: '开启消息通知',
            subtitle: '不错过每一个找你的人',
            clicktxt: '马上设置',
        };
    	apiready();
    }
</script>
